/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package br.edu.ifal.softhouse.gui;

/**
 *
 * @author Lucas Daniel
 */
public class FrmTelaPrincipal extends javax.swing.JFrame {

    /**
     * Creates new form FrmTelaPrincipal
     */
    public FrmTelaPrincipal() {
        initComponents();
    }

    /**
     * This method is called from within the constructor to initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is always
     * regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jMenuItem1 = new javax.swing.JMenuItem();
        jLabel1 = new javax.swing.JLabel();
        jMenuBar1 = new javax.swing.JMenuBar();
        jMenu1 = new javax.swing.JMenu();
        mnuCliente = new javax.swing.JMenuItem();
        mnuTipoClien = new javax.swing.JMenuItem();
        mnuMaq = new javax.swing.JMenuItem();
        mnuH = new javax.swing.JMenuItem();
        jMenu2 = new javax.swing.JMenu();
        mnuISMaq = new javax.swing.JMenuItem();
        jMenu6 = new javax.swing.JMenu();
        mnuFCaixa = new javax.swing.JMenuItem();
        mnuMovCaixa = new javax.swing.JMenuItem();
        jMenu3 = new javax.swing.JMenu();
        mnuSobre = new javax.swing.JMenuItem();
        mnuSair = new javax.swing.JMenuItem();

        jMenuItem1.setText("jMenuItem1");

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
        setBackground(new java.awt.Color(0, 51, 204));

        jLabel1.setIcon(new javax.swing.ImageIcon("C:\\Users\\Lucas Daniel\\Downloads\\Sem título12.png")); // NOI18N

        jMenu1.setMnemonic('C');
        jMenu1.setText("Cadastro");
        jMenu1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMenu1ActionPerformed(evt);
            }
        });

        mnuCliente.setMnemonic('C');
        mnuCliente.setText("Cliente");
        mnuCliente.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                mnuClienteActionPerformed(evt);
            }
        });
        jMenu1.add(mnuCliente);

        mnuTipoClien.setText("Tipo de Cliente");
        mnuTipoClien.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                mnuTipoClienActionPerformed(evt);
            }
        });
        jMenu1.add(mnuTipoClien);

        mnuMaq.setMnemonic('M');
        mnuMaq.setText("Maquinas");
        mnuMaq.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                mnuMaqActionPerformed(evt);
            }
        });
        jMenu1.add(mnuMaq);

        mnuH.setText("Horario");
        mnuH.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                mnuHActionPerformed(evt);
            }
        });
        jMenu1.add(mnuH);

        jMenuBar1.add(jMenu1);

        jMenu2.setMnemonic('I');
        jMenu2.setText("Iniciar Serviço");

        mnuISMaq.setText("Máquinas");
        mnuISMaq.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                mnuISMaqActionPerformed(evt);
            }
        });
        jMenu2.add(mnuISMaq);

        jMenuBar1.add(jMenu2);

        jMenu6.setMnemonic('C');
        jMenu6.setText("Caixa");

        mnuFCaixa.setMnemonic('F');
        mnuFCaixa.setText("Fechar Caixa");
        mnuFCaixa.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                mnuFCaixaActionPerformed(evt);
            }
        });
        jMenu6.add(mnuFCaixa);

        mnuMovCaixa.setMnemonic('M');
        mnuMovCaixa.setText("Movimentação de Caixa");
        mnuMovCaixa.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                mnuMovCaixaActionPerformed(evt);
            }
        });
        jMenu6.add(mnuMovCaixa);

        jMenuBar1.add(jMenu6);

        jMenu3.setMnemonic('S');
        jMenu3.setText("Sistema");
        jMenu3.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMenu3ActionPerformed(evt);
            }
        });

        mnuSobre.setMnemonic('S');
        mnuSobre.setText("Sobre");
        mnuSobre.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                mnuSobreActionPerformed(evt);
            }
        });
        jMenu3.add(mnuSobre);

        mnuSair.setMnemonic('S');
        mnuSair.setText("Sair");
        mnuSair.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                mnuSairActionPerformed(evt);
            }
        });
        jMenu3.add(mnuSair);

        jMenuBar1.add(jMenu3);

        setJMenuBar(jMenuBar1);

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addGap(22, 22, 22)
                .addComponent(jLabel1)
                .addContainerGap(30, Short.MAX_VALUE))
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addGap(63, 63, 63)
                .addComponent(jLabel1)
                .addContainerGap(102, Short.MAX_VALUE))
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void mnuSobreActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_mnuSobreActionPerformed
        // Abrir Tela Sobre o Programa 
       FrmSobre tcc= new FrmSobre();
        tcc.setVisible(true);
  
      
    }//GEN-LAST:event_mnuSobreActionPerformed

    private void mnuSairActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_mnuSairActionPerformed
        // Fechando Programa 
        System.exit(0); 
    }//GEN-LAST:event_mnuSairActionPerformed

    private void mnuMaqActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_mnuMaqActionPerformed
        // Abrir Tela Cadastrpo Maquinas.
        FrmCadastroMaquinas tcm= new FrmCadastroMaquinas();
        tcm.setVisible(true);
        
        
        
    }//GEN-LAST:event_mnuMaqActionPerformed

    private void jMenu3ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenu3ActionPerformed
        // TODO add your handling code here:
        
       
      
    }//GEN-LAST:event_jMenu3ActionPerformed


    private void mnuISMaqActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_mnuISMaqActionPerformed
        // Iniciar Serviço Maquina
  FrmMaquina tcc= new FrmMaquina();
        tcc.setVisible(true);
        
    }//GEN-LAST:event_mnuISMaqActionPerformed


    private void mnuClienteActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_mnuClienteActionPerformed
        // Abrir Cadastro Cliente
        FrmCadastroClientes tcc= new FrmCadastroClientes();
        tcc.setVisible(true);
    }//GEN-LAST:event_mnuClienteActionPerformed

    private void jMenu1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenu1ActionPerformed
        // TODO add your handling code here:
        
    }//GEN-LAST:event_jMenu1ActionPerformed

    private void mnuTipoClienActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_mnuTipoClienActionPerformed
        // Abrir Tipo Cliente
        FrmTipoCliente ttc = new FrmTipoCliente();
        ttc.setVisible(true);
        
        
    }//GEN-LAST:event_mnuTipoClienActionPerformed

    private void mnuFCaixaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_mnuFCaixaActionPerformed
        // Tela Fechar Caixa
 FrmCaixa tcc= new FrmCaixa();
        tcc.setVisible(true);
    }//GEN-LAST:event_mnuFCaixaActionPerformed

    private void mnuMovCaixaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_mnuMovCaixaActionPerformed
        //Abrir Tela Movimentação Caixa
     FrmMovimentacaoCaixa tmc = new FrmMovimentacaoCaixa();
     tmc.setVisible(true);
    }//GEN-LAST:event_mnuMovCaixaActionPerformed

    private void mnuHActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_mnuHActionPerformed
        // TODO add your handling code here:
        FrmCadastrodeHorarios th = new FrmCadastrodeHorarios();
        th.setVisible(true);
    }//GEN-LAST:event_mnuHActionPerformed

    /**
     * @param args the command line arguments
     */
    public static void main(String args[]) {
        /* Set the Nimbus look and feel */
        //<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) ">
        /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel.
         * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html 
         */
        try {
            for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {
                if ("Nimbus".equals(info.getName())) {
                    javax.swing.UIManager.setLookAndFeel(info.getClassName());
                    break;
                }
            }
        } catch (ClassNotFoundException ex) {
            java.util.logging.Logger.getLogger(FrmTelaPrincipal.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (InstantiationException ex) {
            java.util.logging.Logger.getLogger(FrmTelaPrincipal.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (IllegalAccessException ex) {
            java.util.logging.Logger.getLogger(FrmTelaPrincipal.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (javax.swing.UnsupportedLookAndFeelException ex) {
            java.util.logging.Logger.getLogger(FrmTelaPrincipal.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        }
        //</editor-fold>

        /* Create and display the form */
        java.awt.EventQueue.invokeLater(new Runnable() {
            public void run() {
                new FrmTelaPrincipal().setVisible(true);
            }
        });
    }
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JLabel jLabel1;
    private javax.swing.JMenu jMenu1;
    private javax.swing.JMenu jMenu2;
    private javax.swing.JMenu jMenu3;
    private javax.swing.JMenu jMenu6;
    private javax.swing.JMenuBar jMenuBar1;
    private javax.swing.JMenuItem jMenuItem1;
    private javax.swing.JMenuItem mnuCliente;
    private javax.swing.JMenuItem mnuFCaixa;
    private javax.swing.JMenuItem mnuH;
    private javax.swing.JMenuItem mnuISMaq;
    private javax.swing.JMenuItem mnuMaq;
    private javax.swing.JMenuItem mnuMovCaixa;
    private javax.swing.JMenuItem mnuSair;
    private javax.swing.JMenuItem mnuSobre;
    private javax.swing.JMenuItem mnuTipoClien;
    // End of variables declaration//GEN-END:variables

    private static class btnSobre {

        public btnSobre() {
        }
    }
}
